package p270jp.pxv.android.model.pixiv_sketch;

import android.support.p024v4.media.C0261e;
import p056bp.ZonedDateTime;
import p325m0.MutabilityOwnership;

/* compiled from: LiveLog.kt */
/* renamed from: jp.pxv.android.model.pixiv_sketch.LiveLog */
/* loaded from: classes2.dex */
public final class LiveLog {
    public static final int $stable;
    private final ZonedDateTime createdAt;
    private final Data data;
    private final Type type;

    /* compiled from: LiveLog.kt */
    /* renamed from: jp.pxv.android.model.pixiv_sketch.LiveLog$Data */
    /* loaded from: classes2.dex */
    public static final class Data {
        public static final int $stable;
        private final SketchLiveChat chat;
        private final SketchLiveGiftingEntity gifting;

        public Data(SketchLiveChat sketchLiveChat, SketchLiveGiftingEntity sketchLiveGiftingEntity) {
            this.chat = sketchLiveChat;
            this.gifting = sketchLiveGiftingEntity;
        }

        public static /* synthetic */ Data copy$default(Data data, SketchLiveChat sketchLiveChat, SketchLiveGiftingEntity sketchLiveGiftingEntity, int i, Object obj) {
            if ((i & 1) != 0) {
                sketchLiveChat = data.chat;
            }
            if ((i & 2) != 0) {
                sketchLiveGiftingEntity = data.gifting;
            }
            return data.copy(sketchLiveChat, sketchLiveGiftingEntity);
        }

        public final SketchLiveChat component1() {
            return this.chat;
        }

        public final SketchLiveGiftingEntity component2() {
            return this.gifting;
        }

        public final Data copy(SketchLiveChat sketchLiveChat, SketchLiveGiftingEntity sketchLiveGiftingEntity) {
            return new Data(sketchLiveChat, sketchLiveGiftingEntity);
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (!(obj instanceof Data)) {
                return false;
            }
            Data data = (Data) obj;
            return MutabilityOwnership.m3749h(this.chat, data.chat) && MutabilityOwnership.m3749h(this.gifting, data.gifting);
        }

        public final SketchLiveChat getChat() {
            return this.chat;
        }

        public final SketchLiveGiftingEntity getGifting() {
            return this.gifting;
        }

        public int hashCode() {
            SketchLiveChat sketchLiveChat = this.chat;
            int i = 0;
            int hashCode = (sketchLiveChat == null ? 0 : sketchLiveChat.hashCode()) * 31;
            SketchLiveGiftingEntity sketchLiveGiftingEntity = this.gifting;
            if (sketchLiveGiftingEntity != null) {
                i = sketchLiveGiftingEntity.hashCode();
            }
            return hashCode + i;
        }

        public String toString() {
            StringBuilder c = C0261e.m12042c("Data(chat=");
            c.append(this.chat);
            c.append(", gifting=");
            c.append(this.gifting);
            c.append(')');
            return c.toString();
        }
    }

    /* compiled from: LiveLog.kt */
    /* renamed from: jp.pxv.android.model.pixiv_sketch.LiveLog$Type */
    /* loaded from: classes2.dex */
    public enum Type {
        CHAT,
        GIFTING
    }

    public LiveLog(Type type, ZonedDateTime uVar, Data data) {
        MutabilityOwnership.m3745m(uVar, "createdAt");
        MutabilityOwnership.m3745m(data, "data");
        this.type = type;
        this.createdAt = uVar;
        this.data = data;
    }

    public static /* synthetic */ LiveLog copy$default(LiveLog liveLog, Type type, ZonedDateTime uVar, Data data, int i, Object obj) {
        if ((i & 1) != 0) {
            type = liveLog.type;
        }
        if ((i & 2) != 0) {
            uVar = liveLog.createdAt;
        }
        if ((i & 4) != 0) {
            data = liveLog.data;
        }
        return liveLog.copy(type, uVar, data);
    }

    public final Type component1() {
        return this.type;
    }

    public final ZonedDateTime component2() {
        return this.createdAt;
    }

    public final Data component3() {
        return this.data;
    }

    public final LiveLog copy(Type type, ZonedDateTime uVar, Data data) {
        MutabilityOwnership.m3745m(uVar, "createdAt");
        MutabilityOwnership.m3745m(data, "data");
        return new LiveLog(type, uVar, data);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof LiveLog)) {
            return false;
        }
        LiveLog liveLog = (LiveLog) obj;
        return this.type == liveLog.type && MutabilityOwnership.m3749h(this.createdAt, liveLog.createdAt) && MutabilityOwnership.m3749h(this.data, liveLog.data);
    }

    public final ZonedDateTime getCreatedAt() {
        return this.createdAt;
    }

    public final Data getData() {
        return this.data;
    }

    public final Type getType() {
        return this.type;
    }

    public int hashCode() {
        Type type = this.type;
        int hashCode = type == null ? 0 : type.hashCode();
        return this.data.hashCode() + ((this.createdAt.hashCode() + (hashCode * 31)) * 31);
    }

    public String toString() {
        StringBuilder c = C0261e.m12042c("LiveLog(type=");
        c.append(this.type);
        c.append(", createdAt=");
        c.append(this.createdAt);
        c.append(", data=");
        c.append(this.data);
        c.append(')');
        return c.toString();
    }
}
